/*
 * Dto class 
 * Created on 6 juin 2013 ( Time 15:03:49 )
 */
// This Bean has a basic Primary Key (not composite) 

package org.demo.site.bean;

import java.io.Serializable;

import javax.persistence.*;

import javax.validation.constraints.* ;
import org.hibernate.validator.constraints.* ;


import javax.persistence.*;

@Entity
@Table(name="site", catalog="dbscoremanager" )
public class Site implements Serializable
{
    private static final long serialVersionUID = 1L;

    //----------------------------------------------------------------------
    // ENTITY PRIMARY KEY ( BASED ON A SINGLE FIELD )
    //----------------------------------------------------------------------
    @Id
    @Column(name="idSite", nullable=false)
    private int        idsite       ;


    //----------------------------------------------------------------------
    // ENTITY FIELDS 
    //----------------------------------------------------------------------    
    @Column(name="idSociete", nullable=false)
    private int        idsociete    ;
    @Column(name="nomSite", length=254)
    private String     nomsite      ;
    @Column(name="adresseSite", length=254)
    private String     adressesite  ;

    //----------------------------------------------------------------------
    // ENTITY LINKS ( RELATIONSHIP )
    //----------------------------------------------------------------------

    //----------------------------------------------------------------------
    // CONSTRUCTOR(S)
    //----------------------------------------------------------------------
    public Site()
    {
        super();
    }
    
    //----------------------------------------------------------------------
    // GETTER & SETTER FOR THE KEY FIELD
    //----------------------------------------------------------------------
    public void setIdsite( int value )
    {
        this.idsite = value;
    }
    public int getIdsite()
    {
        return this.idsite;
    }

    //----------------------------------------------------------------------
    // GETTERS & SETTERS FOR FIELDS
    //----------------------------------------------------------------------
    //--- DATABSE MAPPING : idSociete ( INT ) 
    public void setIdsociete( int value )
    {
        this.idsociete = value;
    }
    public int getIdsociete()
    {
        return this.idsociete;
    }

    //--- DATABSE MAPPING : nomSite ( VARCHAR ) 
    public void setNomsite( String value )
    {
        this.nomsite = value;
    }
    public String getNomsite()
    {
        return this.nomsite;
    }

    //--- DATABSE MAPPING : adresseSite ( VARCHAR ) 
    public void setAdressesite( String value )
    {
        this.adressesite = value;
    }
    public String getAdressesite()
    {
        return this.adressesite;
    }


    
    //----------------------------------------------------------------------
    // GETTERS & SETTERS FOR LINKS
    //----------------------------------------------------------------------


}
